<template>
  <div class="demo">
    <h2>姓名：{{ name }}</h2>
    <button @click="showName">show - name</button>
  </div>
</template>



<script>

    //导入mixin
    // import {a,b} from '../mixin'
    export default {
        name:'My',
        data(){
            return {
                name:'张三'
            }
        },
        //配置mixin,必须用数组
        // mixins:[a,b]
    }
</script>
